projects
/
openwrt
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb8c34d
)
hostapd: fix basic rate list handling with netifd
author
Felix Fietkau
<
[email protected]
>
Fri, 31 Jan 2014 10:43:18 +0000
(10:43 +0000)
committer
Felix Fietkau
<
[email protected]
>
Fri, 31 Jan 2014 10:43:18 +0000
(10:43 +0000)
Signed-off-by: Felix Fietkau <
[email protected]
>
SVN-Revision: 39431
package/network/services/hostapd/files/netifd.sh
patch
|
blob
|
history
diff --git
a/package/network/services/hostapd/files/netifd.sh
b/package/network/services/hostapd/files/netifd.sh
index c8518b4d4f8d2e65c94eb0007276cbad007df0f8..0c73aa7cabeb22b7da56db67328004eafeb7705e 100644
(file)
--- a/
package/network/services/hostapd/files/netifd.sh
+++ b/
package/network/services/hostapd/files/netifd.sh
@@
-6,6
+6,12
@@
hostapd_add_rate() {
[ $sub -gt 0 ] && append $var "."
}
+hostapd_add_basic_rate() {
+ local var="$1"
+ local val="$(($2 / 100))"
+ append $var "$val" " "
+}
+
hostapd_append_wep_key() {
local var="$1"
@@
-71,7
+77,7
@@
hostapd_prepare_device_config() {
local brlist= br
json_get_values basic_rate_list basic_rate
for br in $basic_rate_list; do
- hostapd_add_rate brlist "$br"
+ hostapd_add_
basic_
rate brlist "$br"
done
[ -n "$brlist" ] && append base_cfg "basic_rates=$brlist" "$N"
[ -n "$beacon_int" ] && append base_cfg "beacon_int=$beacon_int" "$N"